package cn.pn.project.client.pay;

import cn.pn.project.client.schedule.follback.PayFallBack;
import cn.pn.project.pojo.pay.PnTrade;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.sql.SQLException;

@FeignClient(name = "pn-pay-provider",fallback = PayFallBack.class)
public interface PayClient {

    /**
     * 新增支付记录
     * @param pnTrade
     * @return
     * @throws SQLException
     */
    @RequestMapping(value = "/addPnTrade")
    public Integer addPnTrade(@RequestBody PnTrade pnTrade) throws SQLException;
}
